class House < ActiveRecord::Base
  meter_year = 0
  meter_month = 0
  belongs_to :building
  belongs_to :user
  has_many :waters
  has_many :water_meters
  has_many :water_recharges
  has_many :lifts
  has_many :properties
  has_many :water_records,
    :class_name => "WaterMeter" ,
    :finder_sql => "SELECT * FROM water_meters WHERE current_year = #{meter_year} AND current_month = #{meter_month}"
end
